@import "@styles/theme.scss";

.order-info {
  position: relative;
  overflow: hidden;
}

.order-info__wrap {
  padding-bottom: 100px;
  background: #f4f4f4;
}

.address__item {
  padding-left: $spacing-h-lg;
  background: #ffffff;
  background-size: auto 10.5px;
  height: 130px;
  align-items: center;
  display: flex;
  border-bottom: 1px solid #dcd9d9;

  &-l {
    width: 125px;
    height: 82px;
    overflow: hidden;
  }

  &-name {
    width: 125px;
    height: 43px;
    font-size: $font-size-base;
    color: $text-color;
    margin-bottom: 5.2px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  &-c {
    flex: 1;
    height: auto;
    overflow: hidden;
  }

  &-mobile {
    font-size: $font-size-base;
    line-height: 1;
    overflow: hidden;
    color: $text-color;
    margin-bottom: 6.25px;
  }

  &-address {
    height: 37px;
    font-size: $font-size-base;
    line-height: 37px;
    overflow: hidden;
    color: $text-color-light;
  }
}

.order-info__status {
  background: #ffffff;
  padding-right: $spacing-h-lg;
  color: $text-color;
  font-size: $font-size-base;
  text-align: right;
  line-height: 2;
}

.order-info__list {
  margin-top: 20px;
}

.order-info__card {
  margin-top: 20px;
  padding-top: $spacing-h-md;
  padding-bottom: $spacing-h-md;
  padding-left: $spacing-h-lg;
  padding-right: $spacing-h-lg;
  background: #ffffff;

  &-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-top: $spacing-h-md;
    padding-bottom: $spacing-h-md;
  }
}

.order-info__price {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: $spacing-h-md;
  padding-bottom: $spacing-h-md;

  &-l {
    color: $text-color;
    font-size: $font-size-base;
    text-align: left;
  }

  &-r {
    color: $text-color;
    font-size: $font-size-base;
    text-align: right;
  }
}

.order-info__btn-wrap {
  padding-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.order-info__btn {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 80px;
  background: $white;
  margin: 5px;
  border: 1px solid #333333;

  &-l {
    margin-right: 15px;
  }

  &-r {
    margin-left: 15px;
  }

  &-txt {
    color: $text-color;
    font-size: $font-size-base;
    line-height: 30px;
  }
}

.order-info__txt {
  &-name {
  	font-size: $font-size-base;
    color: $text-color;
  }

  &-value {
  	font-size: $font-size-base;
    color: $text-color;
  }

  &-primary {
    color: $primary-color;
    font-size: $font-size-base;
  }

  &-small {
  	font-size: $font-size-sm;
    color: $text-color-light;
  }

  &-narmal {
  	font-size: $font-size-base;
    color: $text-color;
  }
}

.order-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-end;
  width: 100%;
  height: 100px;
  background: #fbfbfb;
  @include border(top, 1px, solid, $border-color);
  padding-left: $spacing-h-lg;
  padding-right: $spacing-h-lg;
}

.order-btn {
  margin-left: 15px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 30px;
  padding: 0 20px;
  background: $white;
  border: 1px solid $text-color-light;
  @include eject(border-width, 1PX);
  color: $text-color;

  &--active {
    color: $primary-color;
    border-color: $primary-color;
  }

  &-txt {
    font-size: $font-size-base;
    line-height: 56px;
  }
}
